From: Keir Fraser Date: Tue, 20 May 2008 08:41:52 +0000 (+0100) Subject: ioemu: Fix interpretation of missing or zero vfb videoram X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14210^2~17^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=7087fca7e1d59175c21011c82fdf7f5dd2ad602e;p=xen.git ioemu: Fix interpretation of missing or zero vfb videoram Changeset 17289:d97e61001d81: introduced vfb configuration parameter videoram, defaulting to zero. Value zero was interpreted as unlimited. Changeset 17630:53195719f762 accidentally dropped the special case for zero, which broke guests that don't specify videoram, or specify videoram=0. Restore the old behavior. Signed-off-by: Markus Armbruster --- diff --git a/tools/ioemu/hw/xenfb.c b/tools/ioemu/hw/xenfb.c index d1f34c4562..67bb38cca5 100644 --- a/tools/ioemu/hw/xenfb.c +++ b/tools/ioemu/hw/xenfb.c @@ -498,7 +498,7 @@ static int xenfb_configure_fb(struct xenfb *xenfb, size_t fb_len_lim, fb_len_lim, fb_len_max); fb_len_lim = fb_len_max; } - if (fb_len > fb_len_lim) { + if (fb_len_lim && fb_len > fb_len_lim) { fprintf(stderr, "FB: frontend fb size %zu limited to %zu\n", fb_len, fb_len_lim);